package com.bing.util;

import com.bing.sina.TaoListener;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * Created by kaibb on 14-8-19.
 */
public class Statistics {
    public static AtomicInteger weiBo = new AtomicInteger(0);

    public static AtomicInteger fenSi = new AtomicInteger(0);

    public static AtomicInteger guanZhu = new AtomicInteger(0);

    public static AtomicInteger t_weiBo = new AtomicInteger(0);

    public static AtomicInteger t_fenSi = new AtomicInteger(0);

    public static AtomicInteger t_guanZhu = new AtomicInteger(0);

    public static void tongji(TaoListener taoListener) {
        StringBuilder sb = new StringBuilder();
        sb.append("粉丝:").append(fenSi.get()).append("/").append(t_fenSi.get())
                .append(" 关注:").append(guanZhu).append("/").append(t_guanZhu.get())
                .append(" 微博:").append(weiBo).append("/").append(t_weiBo.get());
        taoListener.setStatus(sb.toString());
    }
}
